﻿@model MODEL.ViewModel.LoginUser
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>@ViewBag.Title</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <meta name="viewport" content="device-width" initial-scale="1" /> 
    <script src="~/Scripts/qgzx/jquery.js" type="text/javascript"></script>
    <script src="~/Scripts/qgzx/myjs.js" type="text/javascript"></script>
    <script src="~/Scripts/qgzx/GetDateTime.js" type="text/javascript"></script>
    <link rel="stylesheet" href="~/Content/themes/qgzx/index.css" />
    @RenderSection("headSection", required: false)

    @Scripts.Render("~/mvcAjax")
    <style type="text/css">
        #divMsg {
            display: none;
        }
    </style>

    <script type="text/javascript">
        function Success(jsonData) {
            $.procAjaxData(jsonData, function () {
                if (window.top) {
                    window.top.location = jsonData.BackUrl;
                } else {
                    window.location = jsonData.BackUrl;
                }
            })
        }
    </script>

</head>
<body onload="showLeftTime()" bgcolor="#f9f9f7">


    <div class="header">
 @using (Ajax.BeginForm(new AjaxOptions()
        {
            HttpMethod = "post",
            OnSuccess = "Success",
            LoadingElementId = "divMsg"
        }))
   {
        <div class="top">
            <div class="login">
                <div class="time">
                    <label id="show"></label>
                </div>

                <form action="">
                    <span>&nbsp;&nbsp;&nbsp;账号：</span>
                     @Html.TextBoxFor(model => model.LoginName, new { @class = "login-input" }) 
                    <span>密码：</span>
                    @Html.PasswordFor(model => model.Password, new { @class = "login-input"})
                    <select style="margin:6px 0;height:20px;">
                        @Html.DropDownListFor(model => model.Status, 1, new { @name = "Status",@checked = true})
                        <option>学生</option>
                        <option>老师</option>
                        <option>商家</option>
                    </select>
                    <input type="submit" class="btn" onclick="login()" value="登陆" />
                    <input type="submit" class="btn" onclick="window.location.href = '/home/register_1'" value="注册" />
                </form>
                <span><a href="">忘记密码?</a></span>
                <img src="/images/zhuye.png"><a href="http://www.scau.edu.cn/" target="_blank">学校主页</a>
                <img src="/images/gongzuochu.png" /><a href="http://web.scau.edu.cn/xsgzc1/Web/" target="_blank">学生工作处</a>
            </div>
        </div>
   }
        <div class="nav">
            <div class="nav_content">
                <ul id="nav">
                    <li class="mainlevel"><a href="javascript:void(0);" onclick="window.location.href = '/home/index'" style="font-family:迷你简粗倩;">首页</a></li>
                    <li class="mainlevel"><a href="javascript:void(0);" onclick="window.location.href = '/home/introduce'" style="font-family:迷你简粗倩;">机构简介</a></li>
                    <li class="mainlevel">
                        <a href="javascript:void(0);" onclick="window.location.href = '/home/stuJobs'" style="font-family:迷你简粗倩;">助学岗位</a>

                    </li>
                    <li class="mainlevel">
                        <a href="#" style="font-family:迷你简粗倩;">品牌活动</a>
                        <ul>
                            <li><a href="javascript:void(0);" onclick="window.location.href = '/home/zmjh'">竹铭计划</a></li>
                            <li><a href="javascript:void(0);" onclick="window.location.href = '/home/cwy'">列车乘务员</a></li>
                        </ul>
                    </li>
                    <li class="mainlevel"><a href="javascript:void(0);" onclick="window.location.href = '/home/guidance'" style="font-family:迷你简粗倩;">办事指引</a></li>
                    <li class="mainlevel">
                        <a href="javascript:void(0);" onclick="window.location.href = '/home/trainpart'" style="font-family:迷你简粗倩;">培训园地</a>

                    </li>
                </ul>
            </div>
        </div>

    </div>
    <div class="main">
        <div class="pic">
            <div class="pic_content">
                <div id="slider">
                    <a href=""><img id="logo" src="/images/logo.png"></a>
                    <!-- <div id="slider_bg"></div>  -->
                    <!--标题背景-->
                    <!-- <div id="slider_info"></div>  -->
                    <!--标题-->
                    <dt>
                        <dl>1</dl>
                        <dl>2</dl>
                        <dl>3</dl>
                        <dl>4</dl>
                        <dl>5</dl>
                    </dt>
                    <div id="slider_list">
                        <a href="#" target="_blank"><img src="/images/pic.png" width="960" alt="title1" /></a>
                        <a href="#" target="_blank"><img src="/images/pic2.jpg" width="960" alt="title2" /></a>
                        <a href="#" target="_blank"><img src="/images/pic3.jpg" width="960" alt="title3" /></a>
                        <a href="#" target="_blank"><img src="/images/pic4.jpg" width="960" alt="title4" /></a>
                        <a href="#" target="_blank"><img src="/images/pic5.jpg" width="960" alt="title5" /></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    @RenderBody()
    <div class="footer">
        <div class="footer_content">
            <div class="footer_item1">
                <img src="/images/logo2.png" style="width:100%">
            </div>
            <div class="footer_item2">
                地址：广州市华南农业大学第一教学楼西侧<br />
                版权所有@华农勤工
            </div>
            <div class="footer_item1">
                联系电话：020-85284934
            </div>
            <div class="footer_item1">
                邮箱：qgzx@scau.edu.cn
            </div>
            <!--<p>版权所有@华农勤工</p>-->
        </div>
    </div>
</body>
</html>











@*<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    @RenderBody()

    @Scripts.Render("~/bundles/jquery")
    @RenderSection("scripts", required: false)
</body>
</html>*@
